<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/9/20
  Time: 16:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>login</title>
</head>
<style>
    /*body{*/
        /*margin: 0px;*/
        /*padding: 0px;*/
    /*}*/
    #wrip_content{
        width: 500px;
        height: 400px;
        border: 1px solid black;
    }
    #top h1{
        line-height: 100px;
        width: 470px;
        height: 100px;
        margin-top: -1px;
        background-color: green;
        text-align: left;
        padding-left: 30px;
    }
    #top h3{
        line-height: 40px;
        width: 475px;
        height: 40px;
        margin-top: -21px;
        background-color: cornflowerblue;
        text-align: left;
        padding-left: 25px;

    }
    #content{
        padding: 30px;
    }
    #bottom a{
        margin-left: 300px;
        margin-bottom: 30px;
    }
    a{
        color: darkorange;
    }

    input[type=password]{
        margin-left: 28px;
    }
</style>
<%

    String errorMsg = null;

    if (session.getAttribute("errorMsg") != null){

        errorMsg = (String) session.getAttribute("errorMsg");
    }
%>
<script type="text/javascript">

   window.onload=function(){

       var msg = <%="\""+errorMsg+"\""%>;

       if (msg != "null"){
           alert(msg);
       }

   }

</script>



<body>
<center><div id="wrip_content">

    <div id="top">
        <h1>在线考试系统</h1>
        <h3>考生登录</h3>
    </div>
    <div id="content">
        <form action="/login" method="get">
            准考证号：<input type="text" name="id" required="required">
            <br>
            <br>
            密码：<input type="password" name="password" required="required">
            <br>
            <br>
            <input type="submit" value="登录">
            <input type="reset" value="重置">
            <button>注册</button>
            <button>找回密码</button>

        </form>
    </div>
    <div id="bottom">
        <a href="webexam_list.jsp">进入后台</a>
    </div>
</div>
</center>
</body>
</html>
